package com.lmk.ms.common.obs.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * MinIO 配置
 * @author laomake@hotmail.com
 * @version 1.0
 * @date 2022-07-05
 */
@Data
@Component
@ConfigurationProperties(prefix = "ms.config.oss.minio")
public class MinIoProperties {

    /** 启用minio */
    private boolean enabled = false;

    /** 服务器地址 */
    private String endpoint;

    /** 端口 */
    private Integer port;

    /** KEY */
    private String accessKey;

    /** SECRET */
    private String secretKey;

    /** 桶 */
    private String bucket;

    /** 目录 */
    private String directory = "";

    /** 是否启用安全策略 */
    private Boolean secure = false;

    /** 对外文件访问路径 */
    private String urlPath;
}
